package com.car.service.order;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.car.entity.Order;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @ClassName: OrderService
 * @Description:
 * @Author 余全盛
 * @Date: 2021/12/2 13:55
 */
public interface OrderService {
    /**
     * @Description:生成订单
     * @Param:
     * @return: int
     * @Author: 晴
     * @Date: 2021/12/2 14:00
     */
    int creatOrder(Order order);

     List<Order> getOrders(Map<String,Object> param);

     int updateOrderState(String orderId,int orderState);

     int updateOrderInfo(String orderId,int orderState,Double orderEndCarOilValue,Double orderEndCarElectriclValue, Date orderEndDate  );

     Order selectById(String orderId);

     int updataOrder(Order order);

     int updataOrderDepositState(Order order);
}
